﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FoodClass.aspx.cs" Inherits="SZCB.admin.FoodManager.FoodClass" %>

<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager, Version=7.2.0.0, Culture=neutral, PublicKeyToken=fb0a0fe055d40fd4" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>食品类管理</title>
    <link href="../sysImages/default/css/css.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" type="text/javascript" src="../configuration/js/Prototype.js"></script>
    <script language="JavaScript" type="text/javascript" src="../configuration/js/Public.js"></script>
    <script>
        function Delete(id) {
            if (confirm('确定要删除您所选择吗?删除之后将不能被恢复!')) {
                window.location.href = "BookContent.aspx?Option=Del&Id=" + id + "";
            }
        }
        function changeDdivs(divid, divid1) {
            document.getElementById(divid).style.display = "";
            document.getElementById(divid1).style.display = "none";
            //    document.getElementById(divid).className="reshows";
            //    document.getElementById(divid1).className="list_link";
            if (divid == "tableContent") {
                document.getElementById("csize").className = "reshow";
                document.getElementById("csize1").className = "";
            }
            else {
                document.getElementById("csize1").className = "reshow";
                document.getElementById("csize").className = "";
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="toptable">
        <tr>
            <td width="57%" class="sysmain_navi" style="padding-left: 14px" height="30">
                食品类管理
            </td>
            <td width="43%" class="topnavichar" style="padding-left: 14px">
                <div align="left">
                    位置导航：<a href="../main.aspx" target="sys_main" class="list_link">首页</a><img alt=""
                        src="../sysImages/folder/navidot.gif" border="0" /><a href="#">食品管理</a>
                    <img alt="" src="../sysImages/folder/navidot.gif" border="0" />食品类管理
                </div>
            </td>
        </tr>
    </table>
    <table style="width: 100%" border="0" cellpadding="5" cellspacing="1" class="Navitable">
        <tr>
            <td>
                &nbsp;&nbsp;&nbsp;
                <asp:Literal ID="ltlBookName" runat="server"></asp:Literal>&nbsp; <span style="cursor: pointer;
                    padding-left: 10px; height: 20px; font-size: 14px;" id="csize" class="reshow"><a href="AddFoodClass.aspx" target=_self style="text-decoration:none;">添加食品大类</a></span> &nbsp; &nbsp;
                    <a href="AddFoodSubClass.aspx" target=_self style="text-decoration:none;">添加食品子类</a></span> &nbsp; &nbsp; 
                    <a href="AddFoodProduct.aspx" target=_self style="text-decoration:none;">添加产品单元</a></span> &nbsp; &nbsp; 

            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" id="tableContent">
        <tr class="TR_BG_list">
            <td align="right" colspan="5">
                &nbsp;&nbsp;&nbsp;<asp:LinkButton ID="lbtnDelete" runat="server" OnClientClick="return confirm('确定要删除你所选的?删除之后不能恢复')"
                    OnClick="lbtnDelete_Click">批量删除</asp:LinkButton>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
            </td>
        </tr>
        <tr class="TR_BG_list">
            <td align="left" colspan="5">
                <div id="List">
                    <table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" id="tablist"
                        class="table">
                        <tr class="TR_BG">
                            <td align="center" class="sysmain_navi">
                                食品大类
                            </td>
                            <td align="center" class="sysmain_navi">
                                食品小类
                            </td>

                            <td align="center" class="sysmain_navi">
                                创建时间
                            </td>
                            <td align="center" class="sysmain_navi">
                                操作
                            </td>
                        </tr>
                        <asp:Repeater ID="RptData" runat="server" 
                            onitemdatabound="RptData_ItemDataBound">
                            <ItemTemplate>
                                <tr class="TR_BG_list" onmouseover="overColor(this)" onmouseout="outColor(this)">
                                    <td class="list_link">
                                        <%# DataBinder.Eval(Container.DataItem, "sName")%>
                                    </td>
                                    <td class="list_link">
                                        <table width="100%" cellpadding="0">
                                           <asp:Repeater ID="Repeater1" runat="server" onitemdatabound="Repeater1_ItemDataBound">
                                             <ItemTemplate>
                                                 <tr>
                                                   <td width="50%"><%# DataBinder.Eval(Container.DataItem, "sName")%></td>
                                                   <td width="50%">
                                                     <table width="100%" cellpadding="0">
                                                    
                                                        <asp:Repeater ID="Repeater2" runat="server">
                                                           <ItemTemplate>
                                                              <tr>
                                                                 <td width="50%"><%# DataBinder.Eval(Container.DataItem, "sName")%></td>
                                                              </tr>  
                                                           </ItemTemplate>
                                                        </asp:Repeater>
                                                     </table>
                                                   </td>
                                                 </tr>
                                              </ItemTemplate>
                                            </asp:Repeater>
                                        </table>
                                    </td>

                                    <td class="list_link">
                                        <%# DataBinder.Eval(Container.DataItem, "dCreateDate")%>
                                    </td>
                                    <td class="list_link" align="center">
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="TR_BG_list">
            <td align="left" colspan="5" align="center" style="padding-left: 40px;">
                <webdiyer:AspNetPager ID="returnDataPager" runat="server" CssClass="anpager" CurrentPageButtonClass="cpb"
                    CustomInfoHTML="共<span style=color:red>%PageCount%</span>页，当前为第<span style=color:red>%CurrentPageIndex%</span>页，每页<span style=color:red>%PageSize%</span>条，共<span style=color:red>%RecordCount%</span>条记录"
                    PageSize="10" ShowCustomInfoSection="Left" FirstPageText="首页" LastPageText="尾页"
                    AlwaysShow="true" NextPageText="后页" PrevPageText="前页" OnPageChanged="ReturnDataPagerPageChanged">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="copyright_bg"
        style="height: 76px" align="center">
        <tr>
            <td align="center">
                版权所有 Powered by <a href="#" target="_blank" class="a07">健康益佰分</a>
                &copy 2011-2020
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
